
<style type="text/css">
.ncs-info .btns .chat_online, .ncs-info .btns .chat_offline {padding-left:10px;  width:73px;  line-height:21px !important;background: url("__CHAT_PATH__/images/chat_state_01.gif") no-repeat;}
.ncs-info .btns .chat_online { background-position: 8px 2px;}
.ncs-info .btns .chat_offline { background-position: 8px -19px;}
.ncs-info .btns span a:hover { background: url("__CHAT_PATH__/images/chat_state_01.gif") no-repeat 8px 2px;;}
</style>
<!--店铺基本信息 S-->
<div class="ncs-info ncs-infobox">
  <div class="content">
<div class="store-logo"><a title="<?php echo $store_info['store_name'];?>" target="_blank" href="<?php echo url('shop/Showstore/index', array('store_id' => $store_info['store_id']));?>" >
	<img src="<?php echo getStoreLogo($store_info['store_label'],'store_logo');?>" alt="<?php echo $store_info['store_name'];?>"></a></div>
     <div class="title">
    <h4><a class="name" title="<?php echo $store_info['store_name'];?>" target="_blank" href="<?php echo url('shop/Showstore/index', array('store_id' => $store_info['store_id']));?>" ><?php echo $store_info['store_name']; ?></a><?php if ($store_info['is_own_shop']) { ?><em>自营</em><?php } ?></h4>
  </div>
    <?php if (!$store_info['is_own_shop']) { ?>
    <div class="store-infos">
    <dl>
      <dt>公司名称：<?php echo $store_info['store_company_name'];?></dt>
    </dl>
     <dl>
      <dt>所  在   地：<?php echo $store_info['area_info'];?></dt>
     
    </dl>
    <?php if(!empty($store_info['store_phone'])){?>
    <dl>
      <dt>客服电话：<?php echo $store_info['store_phone'];?></dt>
   
    </dl>
    <?php } ?>
        <?php if($store_info['store_workingtime'] !=''){?>
   
        <dl>
      <dt>工作时间：<?php echo html_entity_decode($store_info['store_workingtime']);?></dt>
  
    </dl> <?php }?>
    </div>
    <?php } ?>
    
    <?php if (!$store_info['is_own_shop']) { ?>
	<div class="score-infor">
	 <div class="score-sum"><span class="number <?php echo $value['percent_class'];?>"><?php echo $store_info['store_credit_average'];?></span></div>
    <div class="ncs-detail-rate">
      <ul>
      	{if(!empty($store_info['store_credit']) && is_array($store_info['store_credit']))}
        <?php  foreach ($store_info['store_credit'] as $value) {?>
        <li>
          <h5><?php echo $value['text'];?></h5>
          <div class="<?php echo $value['percent_class'];?>" title="<?php echo $value['percent_text'];?><?php echo $value['percent'];?>"><?php echo $value['credit'];?><i></i></div>
        </li>
        <?php } ?>
        {/if}
      </ul>
      </div>
    </div>
<?php } ?>
    
    <?php if(!empty($store_info['store_qq']) || !empty($store_info['store_ww'])){?>
    <?php } ?>
    <div class="btns clearfix"><a href="<?php echo url('shop/Showstore/index', array('store_id' => $store_info['store_id']));?>" class="goto" >进店逛逛</a>
    	<a href="javascript:collect_store('<?php echo $store_info['store_id'];?>','count','store_collect')" >收藏店铺<span>(<em nctype="store_collect"><?php echo $store_info['store_collect']?></em>)</span></a>
   <?php if(!empty($store_info['store_qq'])){?>
        <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $store_info['store_qq'];?>&site=qq&menu=yes" title="QQ: <?php echo $store_info['store_qq'];?>"><img border="0" src="http://wpa.qq.com/pa?p=2:<?php echo $store_info['store_qq'];?>:8" style=" vertical-align: middle;"/></a>
        <?php }?>
        <?php if(sysconf('node_chat')){ ?>
        <span member_id="<?php echo $store_info['member_id'];?>" ></span>
        <?php }else{ ?>
        <?php if(!empty($store_info['store_ww'])){?>
        <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&amp;uid=<?php echo $store_info['store_ww'];?>&site=cntaobao&s=1&charset=<?php echo CHARSET;?>" >
        	<img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid=<?php echo $store_info['store_ww'];?>&site=cntaobao&s=2&charset=<?php echo CHARSET;?>" alt="<?php echo $lang['nc_message_me'];?>" style=" vertical-align: text-bottom;"/> 旺旺</a>
        <?php }?>
	<?php }?>
     </div>
  </div>
</div>
 
<script>
$(function(){
	var store_id = "<?php echo $store_info['store_id']; ?>";
	var goods_id = "<?php echo I('param.goods_id'); ?>";
	var act = "<?php echo strtolower(FU_current_controller()); ?>";
	var op  = "<?php echo strtolower(FU_current_action()); ?>";
	$.getJSON("{:url('shop/Showstore/ajax_flowstat_record')}",{store_id:store_id,goods_id:goods_id,act_param:act,op_param:op});
});
</script> 
